<!DOCTYPE html>
<html>
<head>
	<title>意见反馈</title>
	<meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
	<link rel="stylesheet" type="text/css" href="/static/css/hw-admin.css">

	<link rel="stylesheet" href="/static/css/lb.css"> 
	<style>
	.main-table-wrap{
		padding: 0 20px;
	}
    td {
        word-break: break-all;
    }
	</style>
   	<!--[if lt IE 9]>
    　 <script src="https://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
       <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.js"></script>
    <![endif]-->
</head>
<body>

	<div class="hw-iframe">
		<!-- 顶部标题 -->
        <div class="hw-header-wrapper">
            <div class="hw-header">
                <div class="hw-header__item--left">
                    意见反馈
                </div>
            </div>
        </div>

        <!-- 顶部筛选 -->
        <div class="hw-filter-wrapper">
			<div class="hw-filter">
				<form method="GET" action="<?=$url ?>">
					<div class="default-filter"> 
						<div class="hw-input-label"> 
							<div class="form-control">
								<div class="hw-search-prevent">
									<input type="text" id="company-name" class="hw-input" placeholder="请输入反馈内容" name="screen" value="<?=isset($_GET['screen']) ? $_GET['screen'] : '' ?>">
									<button class="search-btn" type="submit"><i class="iconfont"></i></button>
								</div>
							</div>
						</div>
						<input type="hidden" id="state" name="state" value="">
						<div class="filter-switch" data-status="">更多筛选条件<i style="transform: scale(0.56);" class="iconfont hw-down">&#xe87d;</i><i  style="transform: scale(0.56);" class="iconfont hw-up hide">&#xe87e;</i></div>
					</div>
					<div class="filter-detail" style="display: <?=isset($_GET['date']) ? 'block' : 'none' ?>">
						<div class="filter-item">
							<div class="hw-input-label">
								<label class="name" for="">提交日期</label>
								<div class="input-icon-group">
									<input type="text" id="startime"  onclick="WdatePicker({maxDate:'%y-%M-%d'})" placeholder="选择日期" name="date" value="<?=isset($_GET['date']) ? $_GET['date'] : '' ?>"  autocomplete="off" disableautocomplete>
									<div class="icon-wrapper">
										<i class="iconfont">&#xe601;</i>
									</div>
								</div>
							</div>
							<div class="operate-btns">
                                <div style="float: left;" class="hw-btn hw-default-btn reset_form"><i style="font-size: 13px;position: relative;left: -2px;" class="iconfont">&#xe629;</i>重置</div>
								<button class="hw-btn"><i class="iconfont">&#xe9df;</i>查询</button>
							</div>
						</div>
					</div>
				</form>
			</div>
		</div>
		
		
		<!-- 表格 -->
       <div class="main-table-wrap">
            <form id="table-form" method="post" action="/Admin/Member/batchExport">
             <input type="hidden" value="" name="id" id="exportid">
                <table cellspacing="0" cellpadding="0" border="0" id="first-table">  
                    <colgroup> 
                        <col class="col-2">
                        <col class="col-8">
                        <col class="col-5">
                        <col class="col-6"> 
                        <col class="col-2">
                        <col class="col-8">
                        <col class="col-6">                                
                    </colgroup>
                    <thead>
                        <tr> 
                            <th> 
                            id
                            </th>                            
                            <th>意见反馈内容</th>   
                            <th>会员姓名</th>
                            <th>联系方式</th>  
                            <th class="hover-th">
                            <span>
                                <?php if (isset($_GET['state'])): ?>
                                    <?php switch ($_GET['state']) {
                                        case '0':
                                            echo '未读';
                                            break;

                                        case '1':
                                            echo '已读';
                                            break;
                                        
                                        default:
                                            echo '状态';
                                            break;
                                    } ?>
                                <?php else: ?>
                                    未读
                                <?php endif ?>
                                <i class="iconfont">&#xe619;</i>
                            </span>
                            <div class="hover-content"> 
                                <ul class="info" data-target="#state"> 
                                    <li class="list <?=isset($_GET['state']) && $_GET['state'] == '' ? 'active' : '' ?>" data-value="">全部</li>                               
                                    <li class="list <?=isset($_GET['state']) && $_GET['state'] === '1' ? 'active' : '' ?>" data-value="1">已读</li>
                                    <li class="list <?=isset($_GET['state']) ? ($_GET['state'] === '0' ? 'active' : '') : 'active' ?>" data-value="0">未读</li>
                                </ul>
                            </div>
                            </th>                                                 
                            <th>提交日期</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php foreach ($list as $key => $value): ?>
                            <tr>  
                                <td><?=$key+1 ?></td>
                                <td title="<?=$value['content'] ?>"><?=$value['content'] ?></td>
                                <td><?=$value['member_name'] ?></td>
                                <td><?=$value['phone'] ?></td>
                                <td><?=$value['state'] == 0 ? '未读' : '已读' ?></td>
                                <td><?=$value['create_time'] ?></td>
                                <td class="opt">
                                    <?php if ($value['state'] == 0): ?>
                                    	<a class="iconright" href="<?=base_url().'Admin/FeedBack/feedBackRead/'.$value['id'] ?>"><i class="iconfont">&#xe606;</i>已读</a>
                                    <?php endif ?>
                                	<a class="iconright" href="<?=base_url().'Admin/FeedBack/feedBackDetail/'.$value['id'] ?>"><i class="iconfont">&#xe6c3;</i>详情</a>
                                </td>
                            </tr>
                        <?php endforeach ?>
                    </tbody>
                </table>
            </form>
            <!--列表分页 -->
            <?php $this->load->view('Admin/Page/page'); ?>
        </div>
	</div>
	<script src="/static/lib/jquery-1.12.4.min.js"></script>
	<script type="text/javascript" src="/static/lib/My97DatePicker/WdatePicker.js"></script>
	<script type="text/javascript" src="/static/lib/jquery.form.min.js"></script>
    <script type="text/javascript" src="/static/js/common/util.js"></script>
	<script type="text/javascript" src="/static/js/common/upload.js"></script>
	<script type="text/javascript" src="/static/lib/jquery.validate.js"></script>
	<script type="text/javascript" src="/static/lib/messages_zh.js"></script>
	<script type="text/javascript" src="/static/js/common/validateExtend.js"></script>
	<script type="text/javascript" src="/static/js/common/common.js"></script>
    <!-- <script type="text/javascript" src="/static/lib/ueditor/ueditor.config.js"></script>
	<script type="text/javascript" src="/static/lib/ueditor/ueditor.all.min.js"></script>
	<script type="text/javascript" src="/static/lib/ueditor/addCustomizeDialog.js"></script> -->

</body>
</html>